/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package register.ucm;
import register.model.InputValueModel;
import javax.swing.*;

/**
 *
 * @author Vitamin
 */
public class GenerateCourseCode {

    private InputValueModel value;
    private String tp;
    private int stCountIT;
    private int otherCount;
    private String tpCount;

    public GenerateCourseCode(InputValueModel temp)
    {
        value=temp;
    }

    public String generateCourse()
    {
//        System.out.println(value.getMajorCourse());
        if(value.getGroup().equals("Student"))
        {
        if(value.getMajorCourse().equals("BC2045"))
        {
            tp="01" ;
        }
        else
        {
            JOptionPane.showMessageDialog(null, "Choose a major course to complete register!");
        }
        }
        else
        {
            tp="99";
        }
        return tp;
    }


}
